package com.tsunami.demo.provider.hystrix;

import com.tsunami.base.R;
import com.tsunami.demo.provider.UserProvider;
import org.springframework.stereotype.Component;

/**
 * @Classname UserProviderFallback
 * @Description TODO
 * @Date 2021-11-17 14:17
 * @Created by lx
 */
@Component
public class UserProviderFallback implements UserProvider {

    @Override
    public R get() {
        return R.error();
    }

    @Override
    public R info(Long id) {
        return R.error();
    }
}
